# See LICENSE file for copyright and license details.

include ../config.mk

SRC = echo.c interrupt.c
OBJ = $(SRC:.c=.o)

EXECS = echo interrupt
LIB = ../libt4.a

all: $(EXECS)

.c.o:
	@$(CC) $(CFLAGS) -c $<

clean:
	@rm -f $(EXECS) $(OBJ) pipe

echo: echo.o $(LIB)
	@$(CC) -o $@ $^ $(LDFLAGS)

interrupt: interrupt.o $(LIB)
	@$(CC) -o $@ $^ $(LDFLAGS)
